package com.twl.app.base.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = "SAL_PARAM")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_SAL_PARAM", allocationSize = 1)
public class SalParam implements Serializable {

	/**
	 * 薪资系统系统参数
	 */
	private static final long serialVersionUID = 1L;

	// 主键
	private Integer paramId;

	// 类型编码
	private String paramType;

	// 类型名称
	private String paramTypeName;

	// 参数编码
	private String paramKey;

	// 参数名称
	private String paramKeyName;

	// 参数值
	private String paramValue;
	
	//是否删除
	private String isDelete;

	// 版本号
	private Integer version;

	// 创建时间
	private Date createTime;

	// 创建人
	private String creator;

	// 修改时间
	private Date modifyTime;

	// 修改人
	private String modifier;

	// 备注
	private String remark;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "instance_sequence")
	@Column(name = "PARAM_ID")
	public Integer getParamId() {
		return paramId;
	}

	public void setParamId(Integer paramId) {
		this.paramId = paramId;
	}

	@Column(name = "PARAM_TYPE")
	public String getParamType() {
		return paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	@Column(name = "PARAM_TYPE_NAME")
	public String getParamTypeName() {
		return paramTypeName;
	}

	public void setParamTypeName(String paramTypeName) {
		this.paramTypeName = paramTypeName;
	}

	@Column(name = "PARAM_KEY")
	public String getParamKey() {
		return paramKey;
	}

	public void setParamKey(String paramKey) {
		this.paramKey = paramKey;
	}

	@Column(name = "PARAM_KEY_NAME")
	public String getParamKeyName() {
		return paramKeyName;
	}

	public void setParamKeyName(String paramKeyName) {
		this.paramKeyName = paramKeyName;
	}

	@Column(name = "PARAM_VALUE")
	public String getParamValue() {
		return paramValue;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}
	
	
	
	@Column(name = "IS_DELETE")
	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}
	
	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATOR")
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "MODIFY_TIME")
	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Column(name = "MODIFIER")
	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
